﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace SwormTests.Joins
{
    public class inheritance_example : TestBase
    {
        public inheritance_example(DbToTest type) : base(type) { }

        public class Foreign
        {
            public string Id { get; set; }
            public string Table { get; set; }
            public string PrimaryId { get; set; }
            public Primary_NoBackref Primary { get; set; }
        }

        [Sworm.Table("Primary")]
        public class Primary_NoBackref
        {
            public string Id { get; set; }
            public string Table { get; set; }
        }

        [Sworm.Table("Primary")]
        public class Primary_WithBackref : Primary_NoBackref
        {
            public Foreign Foreign { get; set; }
        }

        [Test]
        public void todo9024()
        {
            Assert.Inconclusive("TODO should be able to detect nontrivial inheritance somehow");
            // should be able to replicate the simple_one_to_one joins here
        }
    }
}
